package website.seamonster.ethegg.enums;

import lombok.Getter;

/**
 * 异常代码编号
 * Created by 罗海量
 * 2018-07-23 23:43
 */
@Getter
public enum ResultEnum {
    PARAM_ERROR(401,"参数不正确"),
    EGG_NO_ENOUGH(402,"剩余蛋数不足"),
    HATCH_NO_ENOUGH(403,"鸡圈数目不足"),
    PRCODE_NOT_VALID(404,"推广码无效或过期"),
    NO_MONEY(405,"余额不足"),
    USER_NOT_EXIST(406,"用户不存在"),
    PRCODE_NOT_BUY(407,"从未购买过的用户没有推广码");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
